%include "include/sconst.inc"

_NR_sendrec             equ         0
_NR_printx              equ         1

INT_VECTOR_SYS_CALL     equ      0x90

global sendrec
global printx

bits 32
[section .text]

sendrec:
    mov eax, _NR_sendrec
    mov ebx, [esp+4]    ; 函数
    mov ecx, [esp+8]    ; src_dest
    mov edx, [esp+12]   ; p_msg
    int INT_VECTOR_SYS_CALL
    ret

printx:
	mov	eax, _NR_printx
	mov	edx, [esp + 4]
	int	INT_VECTOR_SYS_CALL
	ret
